package com.shixulin.entity;


import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
/**
 * (Course)表实体类
 *
 * @author makejava
 * @since 2023-11-12 20:04:44
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("course")
public class Course  {
    //主键@TableId
    @TableId(type = IdType.AUTO)
    private Integer id;
    //科目id外键
    private Integer subjectId;
    //教师id外键
    private Integer teacherId;
    //描述内容
    private String text;
    //文件名字
    private String filename;

    private String alyfilename;

    private Object size;
    //地址
    private String url;
    //状态('true','false')
    private Integer status;

    public Course(int subjectId, int teacherId, String text, String filename, float size, String url, int status) {
        this.subjectId = subjectId;
        this.teacherId = teacherId;
        this.text = text;
        this.filename = filename;
        this.size = size;
        this.url = url;
        this.status = status;
    }
    public Course(int id, int subjectId, String text, int status,String filename) {
        this.id = id;
        this.subjectId = subjectId;
        this.text = text;
        this.status = status;
        this.filename = filename;
    }


}

